package com.hmall.mapper;

import com.hmall.model.ShopAttrValue;
import com.hmall.model.ShopProductValue;
import com.hmall.util.MyMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ShopProductValueMapper extends MyMapper<ShopProductValue> {
    void updateAttrStatus(@Param("attrId") Integer attrId);

    void updateAttrValueStatus(@Param("attrValueId") Integer attrValueId);

    void updateStatusByProductId(@Param("product_id") Integer product_id);

    List<ShopProductValue> selectByProductId(@Param("productId") Integer productId);
}